Resection of the ilioinguinal nerve